package controllers

import (
	"github.com/astaxie/beego"
	//"fmt"
	//"beego/testApp/common/user"
	//"strconv"
	"beego/testApp/common"
	"beego/testApp/common/tool"
)

type DelMenuController struct {
	beego.Controller
}



func (c *DelMenuController) Get() {
 
	mid,_ := c.GetInt("id")
   
	menuobj := &common.Menu{}

	ckmenudel := menuobj.Del(mid)

	tool.Pic("DEL MENU START","DEL MENU")

	if(ckmenudel == true ){

		tool.Pic("menudelcontroller  success","delsuccess")

		//c.TplName ="admin.tpl"
	    c.Redirect("/admin/menulist",301)
	}
   
}
